package com.cx.service.serviceimp;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.cx.entity.Login;
import java.util.List;
import com.cx.mapper.LoginMapper;
import com.cx.service.LoginService;
@Service
public class LoginServiceImpl implements LoginService{

    @Resource
    private LoginMapper loginMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return loginMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Login record) {
        return loginMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(Login record) {
        return loginMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(Login record) {
        return loginMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(Login record) {
        return loginMapper.insertSelective(record);
    }

    @Override
    public Login selectByPrimaryKey(Integer id) {
        return loginMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Login record) {
        return loginMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Login record) {
        return loginMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<Login> list) {
        return loginMapper.updateBatch(list);
    }

    @Override
    public int batchInsert(List<Login> list) {
        return loginMapper.batchInsert(list);
    }

}
